import { HurtType } from "js/typeDefine/typeDefine";

export default {
    campSize: 50,
    teamSkillCoe: 3, // 团队技能等级系数
    qualityAddAttriPer: [0, 5],
    qualityAttriPoint: {
        0: 0,
        1: 10,
        2: 20,
        3: 30,
        4: 40,
        5: 50,
    },
    recuritNeedDiamond: 5,
    maxLvl: 100,
    maxStar: 5,
    starUpNeed: {
        items: [
            { itemID: 170018, amount: [5, 5, 0.5] },
            { itemID: 'diamond', amount: [10, 5, 1] },
        ]
    },
    extendNeed: {
        items: [
            { itemID: 170018, amount: [5, 5, 0.5] },
            { itemID: 'diamond', amount: [5, 5] },
        ]
    },
    extendStarNeed: {
        items: [
            { itemID: 170018, amount: [20, 20] },
            { itemID: 170004, amount: [10, 20, 0.5] },
        ]
    },
    attriScoreConfig: [0, 1, 2, 3, 4, 5, 6],
    //解雇消耗
    fireNeed: {
        items: [
            { itemID: 'gold', amount: [20, 20] },
        ]
    },
    releasePartnerGet: {
        itemID: 170018,
        amount: [5, 5]
    },
    updateQualityNeed: {
        items: [
            { itemID: 170018, amount: [5, 5, 0.5] },
        ]
    },
    qualityMax: 5,
    //装备方案解锁的vip等级
    unLockEquipmentsPlanVipLvl: [0, 3, 5],

    //升级经验递增配置
    beizengStartLvl: 30,//30级开始倍增
    beizengValue: [1, 1],//每十级增加1倍
    superBeizengValue: [5, 5],//每十级增加1倍
    //等级增加怒气上限
    angerMaxUpByJjlvl: [0, 5],
    upAngerMaxMax: 50,//等级提升怒气上限的上限

    //每点属性对应的战力值
    fcOfAttris: {
        maxHp: 1,
        attack: 5,
        def: 1, //护甲
        puncture: 1, //穿透
        lDef: 3,//电伤防御
        sDef: 3,//毒伤防御
        fDef: 3,//火伤防御
        allDef: 9,//全抗
        attackSpeed: 1,//攻速
        hit: 3, //命中
        dodge: 3, //闪避
        crit: 5, //暴击
        antiCrit: 5, //暴击抵抗
        recoverHp: 2,//生命恢复
        critHurt: 1, //暴击伤害
        antiCritHurt: 1, //暴伤抗性
        reduceLHurt: 1,//电伤减免
        reduceSHurt: 1,//毒伤减免
        reduceFHurt: 1,//火伤减免
        reduceSkillHurt: 1,//技能伤害减免
        reduceHurt: 3,//减伤
        injured: 1, //易伤
        lHurt: 1,//法伤加成
        sHurt: 1,//毒伤加成
        fHurt: 1,//火伤加成
        skillHurt: 1, //技能伤害加成
        reduceSkillCd: 200,//cd 20->200
        addSkillHurt: 20,
        statusHurtPer: 20,
        statusReduceHurt: 20,
    },
    //等级提升属性
    LvlupAttri: {
        attack: [1, 1],
    },
    //侠客升级消耗  需经验  升级境界时额外需要千血酒
    LvlupAttriNeed: {
        resourceItems: [
            { itemID: 'exp', amount: [1, 1, 0.2]}
        ]
    },
    recoverAnger: 3,//每3秒回怒数量
    skillBookAmount: [0, 20, 30, 50, 60, 80],//上阵武功格子解锁等级
    jingMaiJjUp: [0, 1, 2, 3, 5, 7, 9, 12, 15, 20],
    jingMaiJjUpPer: {
        maxHpPer: [0, 1.5],
        attackPer: [0, 1.5],
        defPer: [0, 1.5],
        puncturePer: [0, 1.5],
        critPer: [0, 1.5],
        critHurtPer: [0, 1.5],
        dodgePer: [0, 1.5],
        recoverHpPer: [0, 1.5],
    },
    attrisJc: ['maxHp', 'attack', 'def', 'puncture', 'recoverHp', 'attackSpeed'],
    attriPers: ['maxHpPer', 'attackPer', 'defPer', 'puncturePer', 'recoverHpPer', 'attackSpeedPer'],
    jingmaiAttris: ['maxHp', 'attack', 'def', 'puncture', 'lHurt', 'fHurt', 'sHurt',
        'recoverHp'],
    attriJingMai: {
        maxHp: [1, 1],
        attack: [1, 1],
        def: [1, 1],
        puncture: [1, 1],
        lHurt: [1, 2],
        fHurt: [1, 2],
        sHurt: [1, 2],
        recoverHp: [1, 1],
    },
    //经脉境界提升
    jingmaiJjAttris: ['maxHpPer', 'attackPer', 'defPer', 'puncturePer', 'lHurt', 'fHurt', 'sHurt',
        'recoverHpPer'],
    attriJingMaiJj: {
        maxHpPer: [0, 2],
        attackPer: [0, 2],
        defPer: [0, 2],
        puncturePer: [0, 2],
        lHurt: [0, 2],
        fHurt: [0, 2],
        sHurt: [0, 2],
        recoverHpPer: [0, 2],
    },
    upJingMaiNeed: {
        items: [
            { itemID: 170004, amount: [0.5, 0.5, 0.01], limitLvl: [9, 9] },
            { itemID: 170004, amount: [0.5, 0.5, 0.01], limitLvl: [19, 19] },
            { itemID: 170004, amount: [0.5, 0.5, 0.01], limitLvl: [29, 29] },
            { itemID: 170004, amount: [0.5, 0.5, 0.01], limitLvl: [39, 39] },
            { itemID: 170004, amount: [0.5, 0.5, 0.01], limitLvl: [49, 49] },
            { itemID: 170004, amount: [0.5, 0.5, 0.01], limitLvl: [59, 59] },
            { itemID: 170004, amount: [0.5, 0.5, 0.01], limitLvl: [69, 69] },
            { itemID: 170004, amount: [0.5, 0.5, 0.01], limitLvl: [79, 79] },
            { itemID: 170004, amount: [0.5, 0.5, 0.01], limitLvl: [89, 89] },
            { itemID: 170004, amount: [0.5, 0.5, 0.01], limitLvl: [99, 99] },
        ],
        resourceItems: [
            { itemID: 170003, amount: [2, 2, 0.4] },
            { itemID: 'exp', amount: [2, 2, 0.4] },
            // { itemID: 'money', amount: [2, 2, 0.4] },
        ]
    },
    //属性强化
    attris: ['maxHp', 'attack', 'def', 'recoverHp', 'critHurt'],
    attriStr: {
        maxHp: [0, 0.5, 0, 0, 'floor'],
        attack: [0, 0.5, 0, 0, 'floor'],
        def: [0, 0.5, 0, 0, 'floor'],
        puncture: [0, 5, 0, 0, 'floor'],
        critHurt: [0, 1, 0.1],
        recoverHp: [0, 10, 0.1],
    },
    //属性强化升级消耗
    attriStrNeed: {
        items: [
            { itemID: 170003, amount: [2, 2, 0.2] },
            { itemID: 170004, amount: [1, 1, 0.2], limitLvl: [9, 9] },
            { itemID: 170004, amount: [1, 1, 0.2], limitLvl: [19, 19] },
            { itemID: 170004, amount: [1, 1, 0.2], limitLvl: [29, 29] },
            { itemID: 170004, amount: [1, 1, 0.2], limitLvl: [39, 39] },
            { itemID: 170004, amount: [1, 1, 0.2], limitLvl: [49, 49] },
            { itemID: 170004, amount: [1, 1, 0.2], limitLvl: [59, 59] },
            { itemID: 170004, amount: [1, 1, 0.2], limitLvl: [69, 69] },
            { itemID: 170004, amount: [1, 1, 0.2], limitLvl: [79, 79] },
            { itemID: 170004, amount: [1, 1, 0.2], limitLvl: [89, 89] },
            { itemID: 170004, amount: [1, 1, 0.2], limitLvl: [99, 99] },
            { itemID: 170018, amount: [1, 0.5], limitLvl: [10, 1000] },
        ],
        resourceItems: [
            { itemID: 'gold', amount: [50, 50, 0.2] },
            { itemID: 'exp', amount: [50, 50, 0.2] },
        ]
    },
    //装备部位强化升级消耗
    partStrNeed: {
        items: [
            { itemID: 170001, amount: [2, 2, 0.2] },
            { itemID: 170002, amount: [2, 2, 0.2] },
        ],
        resourceItems: [
            { itemID: 'money', amount: [50, 50, 0.2] },
        ]
    },
    attriList: {
        maxHp: [0, 10, 0.2],
        attack: [0, 5, 0.1],
        def: [0, 10, 0.1],
        puncture: [0, 4, 0],
        attackSpeed: [0, 1, 0.5],

        lDef: [0, 0.1, 0, 0, 'floor'],
        sDef: [0, 0.1, 0, 0, 'floor'],
        fDef: [0, 0.1, 0, 0, 'floor'],
        allDef: [0, 0.02, 0, 0, 'floor'],

        hit: [0, 0.05, 0.1, 0, 'floor'],
        dodge: [0, 0.05, 0.1, 0, 'floor'],
        crit: [0, 0.05, 0.1, 0, 'floor'],
        critHurt: [0, 0.1, 0.1, 0, 'floor'],
        lHurt: [0, 0.05, 0.1, 0, 'floor'],
        fHurt: [0, 0.05, 0.1, 0, 'floor'],
        sHurt: [0, 0.05, 0.1, 0, 'floor'],
        recoverHp: [0, 3, 0.1],
        addAnger: [0, 0.1, 0],
        angerMax: [0, 0.5, 0],
        antiCrit: [0, 0.05, 0, 0, 'floor'],
        antiCritHurt: [0, 0.05, 0, 0, 'floor'],

        bloodHp: [0, 0, 0],
        reduceLHurt: [0, 0, 0],
        reduceSHurt: [0, 0, 0],
        reduceFHurt: [0, 0, 0],
        reduceSkillHurt: [0, 0, 0],
        reduceHurt: [0, 0, 0],
        skillHurt: [0, 0, 0],
        reduceRecover: [0, 0, 0],
        antiReduceRecover: [0, 0, 0],
        hitRange: [0, 0, 0],
    },
    posLimit: {
        0: [100001, 0],
        1: [100001, 2],
        2: [100001, 5],
        3: [100001, 10],
        4: [100002, 5],
        5: [100002, 10],
        6: [100003, 5],
        7: [100003, 10],
        8: [100004, 5],
        9: [100004, 10],
    },
    startAttri: {
        maxHp: 100,
        attack: 5,
        // maxHp: 1000000,
        // attack: 50000,
        def: 10,
        puncture: 4,
        lDef: 0,
        sDef: 0,
        fDef: 0,
        attackSpeed: 80,//100
        hit: 0,
        dodge: 0,//10
        crit: 5,
        antiCrit: 0,

        critHurt: 50,
        antiCritHurt: 0,

        recoverHp: 0,
        bloodHp: 0,

        reduceLHurt: 0,
        reduceSHurt: 0,
        reduceFHurt: 0,
        reduceSkillHurt: 0,
        reduceHurt: 0,

        lHurt: 0,
        sHurt: 0,
        fHurt: 0,
        skillHurt: 0,

        reduceRecover: 0,
        antiReduceRecover: 0,
        hitRange: 0,
        addAnger: 10,
        angerMax: 100
    },
    baseAttri: {
        maxHp: [1, 1],
        attack: [1, 1],
        def: [1, 1],
        puncture: [1, 1],
        lDef: [1, 0],
        sDef: [1, 0],
        fDef: [1, 0],
        attackSpeed: [1, 0],
        hit: [1, 0],
        dodge: [1, 0],
        crit: [1, 0],
        antiCrit: [1, 0],

        critHurt: [1, 0],
        antiCritHurt: [1, 0],

        recoverHp: [1, 0],
        bloodHp: [1, 0],

        reduceLHurt: [1, 0],
        reduceSHurt: [1, 0],
        reduceFHurt: [1, 0],
        reduceSkillHurt: [1, 0],
        reduceHurt: [1, 0],

        lHurt: [1, 0],
        sHurt: [1, 0],
        fHurt: [1, 0],
        skillHurt: [1, 0],

        reduceRecover: [1, 0],
        antiReduceRecover: [1, 0],
        hitRange: [1, 0],
        addAnger: [1, 0],
        angerMax: [1, 0],
    },
    teamPosLock: {
        0: 0,
        1: 3,
        2: 5,
        3: 11,
        4: 15,
        5: 31,
        6: 35,
        7: 41,
        8: 51,
        9: 61,
    },
    campMaxLvl: 30,
    campExp: [1, 1, 0.1],
    campTaskLimit: 10,
    campTaskQuqueMax: 3,
    campTaskRefreshTimes: 1,
    campTaskQuqueLimit: {
        10: 1,
        20: 2,
        30: 3
    },
    campTask: {
        dayTimes: [5, 0],
        times: [30, 60, 120]
    },
    campLvlUpNeed: {
        items: [
            { itemID: 170003, amount: [2, 2, 0.2] },
            { itemID: 170004, amount: [1, 1], limitLvl: [10, 100] },
            { itemID: 170018, amount: [0, 1, 0.1], limitLvl: [10, 100] },
            { itemID: 'diamond', amount: [5, 5, 0.1], limitLvl: [9, 9] },
            { itemID: 'diamond', amount: [5, 5, 0.1], limitLvl: [19, 19] },
            { itemID: 'diamond', amount: [5, 5, 0.1], limitLvl: [29, 29] },
            { itemID: 'diamond', amount: [5, 5, 0.1], limitLvl: [39, 39] },
            { itemID: 'diamond', amount: [5, 5, 0.1], limitLvl: [49, 49] },
            { itemID: 'diamond', amount: [5, 5, 0.1], limitLvl: [59, 59] },
            { itemID: 'diamond', amount: [5, 5, 0.1], limitLvl: [69, 69] },
            { itemID: 'diamond', amount: [5, 5, 0.1], limitLvl: [79, 79] },
            { itemID: 'diamond', amount: [5, 5, 0.1], limitLvl: [89, 89] },
            { itemID: 'diamond', amount: [5, 5, 0.1], limitLvl: [99, 99] },
        ],
        resourceItems: [
            { itemID: 'gold', amount: [500, 500, 0.2] }
        ]
    }
}